package hibernate_many2many.hib;

import java.util.HashSet;
import java.util.Set;

/**
 * Emp entity. @author MyEclipse Persistence Tools
 */

public class Emp implements java.io.Serializable {

	// Fields

	private Integer id;
	private Department department;
	private String name;
	private String sex;
	private Set interestings = new HashSet(0);

	// Constructors

	/** default constructor */
	public Emp() {
	}

	/** full constructor */
	public Emp(Department department, String name, String sex, Set interestings) {
		this.department = department;
		this.name = name;
		this.sex = sex;
		this.interestings = interestings;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Set getInterestings() {
		return this.interestings;
	}

	public void setInterestings(Set interestings) {
		this.interestings = interestings;
	}

}